USE [HR_DB]
GO
if exists(select * from dbo.sysobjects where id = object_id(N'engage_exam_details')   and   OBJECTPROPERTY(id,   N'IsUserTable')   =   1)   
  drop table engage_exam_details  
-- =============================================
-- Author:杨洁(kaixuanpisces)
-- Create date: 20090826
-- Description:试卷详细信息
-- =============================================
CREATE TABLE [dbo].[engage_exam_details](
	[exd_id] [smallint] IDENTITY(1,1) NOT NULL,
	[exam_number] [varchar](30) NULL,
	[first_kind_id] [char](2) NULL,
	[first_kind_name] [varchar](60) NULL,
	[second_kind_id] [char](2) NULL,
	[second_kind_name] [varchar](60) NULL,
	[question_amount] [smallint] NULL,
 CONSTRAINT [engage_exam_details_PK] PRIMARY KEY CLUSTERED 
(
	[exd_id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
-- ==============================================
-- 列名说明
-- ==============================================
GO
SET ANSI_PADDING OFF
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键，自动增长列' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'engage_exam_details', @level2type=N'COLUMN',@level2name=N'exd_id'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'试卷编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'engage_exam_details', @level2type=N'COLUMN',@level2name=N'exam_number'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'试题一级分类编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'engage_exam_details', @level2type=N'COLUMN',@level2name=N'first_kind_id'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'试题一级分类名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'engage_exam_details', @level2type=N'COLUMN',@level2name=N'first_kind_name'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'试题二级分类编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'engage_exam_details', @level2type=N'COLUMN',@level2name=N'second_kind_id'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'试题二级分类名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'engage_exam_details', @level2type=N'COLUMN',@level2name=N'second_kind_name'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'出题数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'engage_exam_details', @level2type=N'COLUMN',@level2name=N'question_amount'